// src/config/menu.js
export const menuList = [
  


    // 订单管理模块
    {
        path: '/order',
        title: '订单中心',
        icon: 'Tickets',
        roles: ['admin', 'sales'],
        children: [
            {
                path: '/order/list',
                title: '订单列表',
                icon: 'List',
                children: [
                    {
                        path: '/order/list/all',
                        title: '全部订单',
                        badge: 128
                    },
                    {
                        path: '/order/list/pending',
                        title: '待处理',
                        badge: 12
                    },
                    {
                        path: '/order/list/completed',
                        title: '已完成'
                    }
                ]
            },
            {
                path: '/order/analyze',
                title: '订单分析',
                icon: 'DataAnalysis',
                children: [
                    {
                        path: '/order/analyze/daily',
                        title: '日报表'
                    },
                    {
                        path: '/order/analyze/monthly',
                        title: '月报表'
                    }
                ]
            }
        ]
    },

    // 商品管理模块
    {
        path: '/product',
        title: '商品管理',
        icon: 'Goods',
        children: [
            {
                path: '/product/list',
                title: '商品列表',
                children: [
                    {
                        path: '/product/list/onsale',
                        title: '在售商品'
                    },
                    {
                        path: '/product/list/offline',
                        title: '已下架'
                    }
                ]
            },
            {
                path: '/product/category',
                title: '分类管理',
                children: [
                    {
                        path: '/product/category/tree',
                        title: '分类树'
                    },
                    {
                        path: '/product/category/attribute',
                        title: '属性管理'
                    }
                ]
            }
        ]
    },

    // 财务模块
    {
        path: '/finance',
        title: '财务管理',
        icon: 'Money',
        roles: ['finance'],
        children: [
            {
                path: '/finance/invoice',
                title: '发票管理',
                children: [
                    {
                        path: '/finance/invoice/apply',
                        title: '开票申请'
                    },
                    {
                        path: '/finance/invoice/history',
                        title: '开票记录'
                    }
                ]
            },
            {
                path: '/finance/report',
                title: '财务报表',
                children: [
                    {
                        path: '/finance/report/daily',
                        title: '日报表'
                    },
                    {
                        path: '/finance/report/monthly',
                        title: '月报表'
                    }
                ]
            }
        ]
    },

    // 客户管理模块
    {
        path: '/crm',
        title: '客户管理',
        icon: 'UserFilled',
        children: [
            {
                path: '/crm/customer',
                title: '客户列表',
                children: [
                    {
                        path: '/crm/customer/all',
                        title: '全部客户'
                    },
                    {
                        path: '/crm/customer/vip',
                        title: 'VIP客户'
                    }
                ]
            },
            {
                path: '/crm/contact',
                title: '联系记录',
                children: [
                    {
                        path: '/crm/contact/history',
                        title: '历史记录'
                    },
                    {
                        path: '/crm/contact/schedule',
                        title: '联系计划'
                    }
                ]
            }
        ]
    },

    // 系统管理模块
    {
        path: '/system',
        title: '系统管理',
        icon: 'Setting',
        roles: ['admin'],
        children: [
            {
                path: '/system/user',
                title: '用户管理',
                icon: 'User',
                children: [
                    {
                        path: '/system/user/list',
                        title: '用户列表',
                        component: 'UserList'
                    },
                    {
                        path: '/system/user/role',
                        title: '角色分配',
                        component: 'UserRole',
                        children: [
                            {
                                path: '/system/user/role/edit',
                                title: '权限配置',
                                hidden: true
                            }
                        ]
                    }
                ]
            },
            {
                path: '/system/dept',
                title: '部门管理',
                icon: 'OfficeBuilding',
                children: [
                    {
                        path: '/system/dept/tree',
                        title: '组织架构'
                    },
                    {
                        path: '/system/dept/position',
                        title: '岗位管理'
                    }
                ]
            },
            {
                path: '/system/log',
                title: '日志监控',
                icon: 'Document',
                children: [
                    {
                        path: '/system/log/operate',
                        title: '操作日志'
                    },
                    {
                        path: '/system/login/log',
                        title: '登录日志'
                    }
                ]
            }
        ]
    },
    

]